import Vue from "vue";
import App from "./App";
import router from "./router";
import ElementUI from "element-ui";
import AMap from "vue-amap";
import "element-ui/lib/theme-chalk/index.css";
import "./assets/iconfont/iconfont.css";
import axios from 'axios'
import store from './store/vuex'
import VueRouter from "vue-router";
import mockdata from './mock/mock';
import Vant from 'vant'
import 'vant/lib/index.css';



Vue.prototype.$store = store;
Vue.prototype.$axios = axios;
Vue.config.productionTip = false;

Vue.use(Vant);
Vue.use(ElementUI);
Vue.use(AMap);


AMap.initAMapApiLoader({
    // 高德key
    key: "d973654b5ae66a33b083ac70354660aa",
    // 插件集合 （插件按需引入）
    plugin: ["AMap.Geolocation", "AMap.Scale", "AMap.PlaceSearch"]
});
/* eslint-disable no-new */
new Vue({
    el: "#app",
    router,
    Vant,
    store,
    components: {
        App
    },
    template: "<App/>"
});
